package com.dearbinge.data.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.dearbinge.data.pojo.bankCard.BankCard;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface BankCardMapper {
    Integer insert(BankCard bankCard);

    Integer update(BankCard bankCard);

    Integer delete(Integer id);

    Integer count(String userId);

    List<BankCard> getByPage(@Param("userId") String userId, Page<BankCard> page);
}
